<script lang="ts" setup>
import { ModernAuthenticationLogin } from '@vben/common-ui';
import { ModernAuthLayout } from '@vben/layouts';

import { useAuthStore } from '#/store';

defineOptions({ name: 'Login' });

const authStore = useAuthStore();
</script>

<template>
  <ModernAuthLayout
    app-name="工作平台"
    page-title="欢迎使用工作平台"
    page-description="高效、安全、便捷的工作管理解决方案"
  >
    <ModernAuthenticationLogin
      :loading="authStore.loginLoading"
      @submit="authStore.authLogin"
    />
  </ModernAuthLayout>
</template>
